home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
glibc108.zip
/
glibc108
/
time
/
yearistype
< prev
next >
Wrap
Text File
|
1993-05-21
|
298b
|
19 lines
#! /bin/sh
: '@(#)yearistype.sh 7.2'
case $#-$2 in
2-odd) case $1 in
*[13579]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-even) case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-*) echo "$0: wild type - $2" >&2
exit 1 ;;
*) echo "$0: usage is $0 year type" >&2
exit 1 ;;
esac